#region Copyright

// // ======================================================
// //     Copyright (c) 2011 Toulr All rights reserved.
// //    
// //     The use and distribution terms for this software are contained in the file
// //     named license.txt, which can be found in the root of this distribution.
// //     By using this software in any fashion, you are agreeing to be bound by the
// //     terms of this license.
// //    
// //     You must not remove this notice, or any other, from this software.
// // ======================================================

#endregion

#region Using Namespaces

using System;

#endregion

namespace Toulr.Util.Net.Email
{
    #region

    

    #endregion

    /// <summary>
    ///   Abstracts an approach to send e-mails
    /// </summary>
    public interface IEmailSender
    {
        /// <summary>
        ///   Sends a message.
        /// </summary>
        /// <param name = "from">From field</param>
        /// <param name = "to">To field</param>
        /// <param name = "subject">e-mail's subject</param>
        /// <param name = "messageText">message's body</param>
        void Send(String from, String to, String subject, String messageText);

        /// <summary>
        ///   Sends a message.
        /// </summary>
        /// <param name = "message">Message instance</param>
        void Send(Message message);

        /// <summary>
        ///   Sends multiple messages.
        /// </summary>
        /// <param name = "messages">Array of messages</param>
        void Send(Message[] messages);
    }
}